#include<stdio.h>
void fun(int (*p[4]),int x,int y) {
	printf("p[1][2]=%d\n", p[1][2]);
	p[0][1] = 100;
	int i, j;
	for (i = 0; i < x; i++) {
		for (j = 0; j < y; j++) {
			printf("%d ", p[i][j]);

		}
		printf("\n");
	}


}

int main() {
	int a[3][4] = {
		{1,2,3,4},
		{5,6,7,8},
		{9,10,11,12}
	};
	fun(a,3,4);
	printf("a[0][1]=%d\n", a[0][1]);
	return 0;
}